package com.kckj.comm.validation;

/**
 * @author hang
 * @date 2020-08-18-11:11
 * @description 端口验证器
 */
public class PortValidation extends AbstractValidationCell {

    @Override
    public void validateCell(int row, Object cellValue) throws Exception {
        try {
            Integer.valueOf(cellValue.toString());
        } catch (NumberFormatException e) {
            throw new Exception("excel数据行第"+row+"行端口验证失败!");
        }
    }

}
